package com.yc.sole.framework.utils;

import com.wf.captcha.ArithmeticCaptcha;

/**
 * @author yizuomin
 * @date 2022/11/19 17:01
 **/
public class CaptchaUtil {

    private static final Integer WIDTH = 130;

    private static final Integer HEIGHT = 48;

    public static ArithmeticCaptcha getCaptcha() {
        return new ArithmeticCaptcha(WIDTH, HEIGHT);
    }

    public static ArithmeticCaptcha getCaptcha(Integer width, Integer height) {
        return new ArithmeticCaptcha(width, height);
    }
}
